#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
int r[N],a[N],c[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,x,t=0;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        scanf("%d",&x);
        a[x]++;
        if(a[x]==1) c[t++]=x;
    }
    sort(c,c+t);
    int ans=n;
    for(int i=1;i<t;i++){
//        cout<<c[i]<<" "<<a[c[i]]<<endl;
        ans-=a[c[i]];
    }
    printf("%d",ans);
    return 0;
}
